import request from '@/utils/request'

export function addProjectUser(data) {
  return request({
    url: 'api/ProjectUserInfo/Insert',
    method: 'post',
    data
  })
}

export function delProjectUserInfo(data) {
  return request({
    url: 'api/ProjectUserInfo/Delete',
    method: 'post',
    data
  })
}

export function getProjectUserInfo(data) {
  return request({
    url: 'api/ProjectUserInfo/Get',
    method: 'post',
    data
  })
}

export function getUserOutsizeProject(id) {
  return request({
    url: 'api/ProjectUserInfo/GetUserOutsizeProject',
    method: 'get',
    params: {
      projectId: id
    }
  })
}

export function getAllProjectUserInfo(projectId) {
  return request({
    url: 'api/ProjectUserInfo/GetAll',
    method: 'get',
    params: {
      projectId
    }
  });
}

